<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<form action="/file/directory" enctype="multipart/form-data" method="post">
  <input type="hidden" name="type" value="1"/>
  <input id="dir" type="file" name="file" webkitdirectory mozdirectory/>
  <input id="uploadDir" type="submit" value="提交文件夹">
</form>


</body>
</html>